package com.fuchuang.seckillsystem.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountFlow {
    //订单流水id
    private Integer id;
    
    //支付者id
    private Integer payerId;
    
    //收款者id
    private Integer payeeId;
    
    //支付金额
    private BigDecimal amount;
    
    //订单id
    private Integer orderId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    
    private Integer isValid;
    
}